package com.test.design.example1.carFactory.impl;

import com.test.design.example1.dto.Car;
import com.test.design.example1.carFactory.CarFactory;

/**
 * @program: design-patternz
 * @description: bus生产车间
 * @author: <a href="mailto:zhengjiaming@gtmap.cn">zhengjiaming</a>
 * @create: 2024-12-26 09:50
 **/
public class BUSFactory extends CarFactory {

    @Override
    public Car createCar() {
        Car car = new Car();
        car.setYs("白色");
        car.setXh("BUS");
        return car;
    }

    //普通方法
    public String createCar11() {
        return "工厂生产了一辆绿色大巴车卖5块钱";
    }
}
